<%@ page session="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%>
<%@ taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%>
<!-- strona okienka służąca do zmiany hasła -->
<f:view>
	<trh:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="shortcut icon" href="gfx/studiografic.ico" type="image/ico" />
		<link href="style/style.css" rel="stylesheet" type="text/css"
			media="screen" />
		<title>Rejestrator StudioGrafic&trade;</title>
	</trh:head>
	<trh:body inlineStyle="background-color:#fff;">
		<tr:form>
			<fieldset><legend>Wprowadzanie haseł</legend>
			<table width="100%">
				<tr>
					<td>Stare:</td>
					<td><tr:inputText
						value="#{salesmanController.userPassword.currentPass}"
						secret="true" required="true" /></td>
				</tr>
				<tr>
					<td>Nowe:</td>
					<td><tr:inputText
						value="#{salesmanController.userPassword.newPass}"
						secret="true" required="true" /></td>
				</tr>
				<tr>
					<td>Nowe:</td>
					<td><tr:inputText
						value="#{salesmanController.userPassword.newPassRepeted}"
						secret="true" required="true" /></td>
				</tr>
				<tr>
					<td></td>
					<td align="right"><tr:commandButton
						action="#{salesmanController.changeSalesmanPassword}"
						text="zapisz zmiany"
						inlineStyle="color:white;background-color:green" /> 
						<tr:message id="invalidPassword" inlineStyle="color:red" /></td>
				</tr>
			</table>
			</fieldset>
		</tr:form>
	</trh:body>
</f:view>